const app = getApp();

Component({
  properties: {
    params: {
      type: Object,
      value: {}
    }
  },
  data: {},
  ready() {
    const {
      padding_top_bottom,
      background,
      style,
      border_color,
      position,
      text,
      color
    } = this.properties.params

    this.setData({
      padding_top_bottom: padding_top_bottom,
      background: background,
      style: style,
      border_color: border_color,
      position: position,
      text: text,
      color: color
    });
  },
  methods: {}
})